package com.example.msaweathereurekaclient.controller;

import com.example.msaweathereurekaclient.service.CityClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hps
 * @Description:
 * @Date: Created in 14:23 2018/9/9
 */
@RestController
public class CityController {

    private CityClient cityClient;

    public CityController(CityClient cityClient) {
        this.cityClient = cityClient;
    }

    @GetMapping("/cities")
    public String listCity() {
        return cityClient.listCity();
    }
}
